<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <!-- Title and other stuffs -->
    <title>编辑用户</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="author" content="">
    {include file="public/css" /}
    {include file="public/page_css" /}
</head>

<body>

{include file="public/top" /}

<!-- Main content starts -->

<div class="content">

    <!-- 左侧菜单 -->
    {include file="public/menu" /}
    <!-- 左侧菜单 ends -->

    <!-- Main bar -->
    <div class="mainbar">

        <!-- Page heading -->
        <div class="page-head">
            <h2 class="pull-left"><i class="icon-home"></i> 编辑系统用户</h2>

            <!-- Breadcrumb -->
            <div class="bread-crumb pull-right">
                <a href="#" class="bread-current">系统管理</a>
            </div>

            <div class="clearfix"></div>

        </div>
        <!-- Page heading ends -->



        <!-- Matter -->

        <div class="matter">
            <div class="container">

                <!-- Dashboard Graph starts -->

                <div class="row">
                    <div class="col-md-12">


                        <div class="widget wgreen">

                            <div class="widget-head">
                                <div class="pull-left">Forms</div>
                                <div class="widget-icons pull-right">
                                    <a href="#" class="wminimize"><i class="icon-chevron-up"></i></a>
                                    <a href="#" class="wclose"><i class="icon-remove"></i></a>
                                </div>
                                <div class="clearfix"></div>
                            </div>

                            <div class="widget-content">
                                <div class="padd">
                                    <!-- Form starts.  -->
                                    <form class="form-horizontal" role="form" method="post" id="form1" action="/admin/core/userAdd" gotourl="/admin/core/user">

                                        <div class="form-group">
                                            <label class="col-lg-4 control-label">用户名</label>
                                            <div class="col-lg-8">
                                                <input type="text" name="username" id="username" class="form-control" value="{$info.user_name}" placeholder="请输入用户名" errmsg="请输入用户名" validata="required">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-lg-4 control-label">密码</label>
                                            <div class="col-lg-8">
                                                <input type="password" name="password" id="password" class="form-control" placeholder="默认tkpassword">
                                            </div>
                                        </div>

                                        <hr />
                                        <div class="form-group">
                                            <div class="col-lg-offset-1 col-lg-9">
                                                <if condition="$info.username neq ''">
                                                    <input type="hidden" name="edit" value="1" />
                                                    <input type="hidden" name="id" value="{$info.id}" />
                                                </if>
                                                <button type="button" class="btn btn-primary" onclick="form_add()">确定</button>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                            </div>
                            <div class="widget-foot">
                                <!-- Footer goes here -->
                            </div>
                        </div>

                    </div>
                </div>
                <!-- Dashboard graph ends -->


            </div>
        </div>

        <!-- Matter ends -->

    </div>

    <!-- Mainbar ends -->
    <div class="clearfix"></div>

</div>
<!-- Content ends -->

<!-- Footer starts -->
{include file="public/foot" /}
<!-- Footer ends -->

<!-- Scroll to top -->
<span class="totop"><a href="#"><i class="icon-chevron-up"></i></a></span>

{include file="public/js" /}
<script src="/static/admin/js/system/form.js"></script>
</body>
</html>